<template>
	<view v-for="(item,index) in info" :key="index" class="page-content">
		<view class="title">
			<image src="../../../static/wallet/redract.png" mode="" style="width: 4px;height: 21px;margin-right: 10px;"></image>
			<text>{{item.name}}</text>
		</view>
		<!-- 鱼票信息 -->
		<view class="list-box" v-if="item.name=='鱼票信息'">
			<view class="flex-between">
				<view class="black-word">
					钓场：
				</view>
				<view class="black-word">
					{{item.fish_information_list[0].fishing_spot_name}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					场次名称：
				</view>
				<view class="black-word">
					{{item.fish_information_list[0].event_name}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					开钓日期：
				</view>
				<view class="black-word">
					{{item.fish_information_list[0].fishing_date}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					垂钓时间：
				</view>
				<view class="black-word">
					{{item.fish_information_list[0].fishing_time}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					垂钓时长：
				</view>
				<view class="black-word">
					{{item.fish_information_list[0].fishing_duration}}
				</view>
			</view>
		</view>
		
		<!-- 鱼票订单信息 -->
		<view class="list-box" v-if="item.name=='鱼票订单信息'">
			<view class="flex-between">
				<view class="black-word">
					钓友：
				</view>
				<view class="black-word">
					{{item.fish_order_list[0].buyer}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					手机号：
				</view>
				<view class="black-word">
					{{item.fish_order_list[0].buyer_phone}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					票面价格：
				</view>
				<view class="black-word">
					￥{{item.fish_order_list[0].face_par}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					优惠打折：
				</view>
				<view class="black-word">
					{{item.fish_order_list[0].discount}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					实付金额：
				</view>
				<view class="black-word" style="color:red">
					+￥{{item.fish_order_list[0].amount}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					订单号：
				</view>
				<view class="black-word">
					{{item.fish_order_list[0].order_number}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					下单时间：
				</view>
				<view class="black-word">
					{{item.fish_order_list[0].create_time}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					支付方式：
				</view>
				<view class="black-word">
					{{item.fish_order_list[0].payment_method}}
				</view>
			</view>
		</view>
		
		
		<!-- 鱼户订单信息 -->
		<view class="list-box" v-if="item.name=='鱼户订单信息'">
			<view class="flex-between">
				<view class="black-word">
					鱼护编号：
				</view>
				<view class="black-word">
					{{item.detail_pail_list[0].bucket_number}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					订单号：
				</view>
				<view class="black-word">
					{{item.detail_pail_list[0].bucket_odd}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					下单时间：
				</view>
				<view class="black-word">
					{{item.detail_pail_list[0].bucket_time}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					租用时长：
				</view>
				<view class="black-word">
					{{item.detail_pail_list[0].bucket_duration}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					租用鱼护返现：
				</view>
				<view class="black-word" style="color:red">
					-￥{{item.detail_pail_list[0].bucket_amount.replace('-','')}}
				</view>
			</view>
			<view class="flex-between">
				<view class="black-word">
					返现路径：
				</view>
				<view class="black-word">
					{{item.detail_pail_list[0].bucket_method}}
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	import {
		get_wallet_particulars
	} from '@/utils/siteAccountApi/index.js'
	export default {
		data() {
			return {
				payment_id: '',
				info: []

			}
		},
		methods: {

			getInfo(payment_id) {
				let data = {
					payment_id: payment_id
				}
				get_wallet_particulars(data).then(res => {
					if (res.code == 200) {
						console.log(res);
						this.info = res.data
					}

				})
			}


		},

		onLoad(option) {
			let payment_id = option.payment_id
			this.getInfo(payment_id)
		},

	}
</script>

<style lang="scss" scoped>
	.page-content{
		width: 100%;
		padding: 15px;
		box-sizing: border-box;
	}
	.title{
		font-size: 17px;
		font-weight: 600;
		margin-bottom: 12px;
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}
	.list-box{
		width: 100%;
		font-size: 14px
	}
	
	.black-word{
		margin-bottom: 3px;
	}
	
</style>